export function tipHook () {
    
    // 消息提醒
    const msgTip = (type, message, showClose) => {
        ElMessage({
            // 'success' | 'warning' | 'info' | 'error'
            type: type || 'info',
            message: message || '',
            showClose: showClose || false,
        });
    }


    // 通知提醒
    const noticeTip = (type,title,message,position) => {
        ElNotification({
            // 'success' | 'warning' | 'info' | 'error' | ''
            type: type || '',
            title: title || '通知',
            message: message || '',
            position: position || 'top-right'
        })
    }

    return {
        msgTip,
        noticeTip
    }
}